package spar.cancer.data.to.dump;

import spar.cancer.struct.CheckInfo;

import java.util.List;
import java.util.Map;

public class DumpStdout extends DumpAbstract{
    @Override
    public void dumpChkInfos(List<CheckInfo> checkInfos) {
        checkInfos.forEach(info -> {
            System.out.println(makeHash(info));
        });
    }

    @Override
    public void dumpLineCodes(Map<Integer, List<String>> lineCodes) {
        lineCodes.forEach((lineNumber, codes) -> {
            System.out.format("{lineNumber=%d, codes=%s}\n", lineNumber, codes);
        });
    }

    @Override
    public void close() {

    }
}
